[%if count($array)>0 || count($array_top)>0 %]
<table class="table table-hover" id="tablelist">
	<thead>
		<tr class="bg_feishe kill_copy">
			<th class="text-center table_width_60">[%pack:public_pack-espcms_lable_select_name%]</th>
			<th class="text-center table_width_100 sort_field" sort-field="nevigate_id">[%pack:public_pack-espcms_lable_id_name%]</th>
			<th class="text-center table_width_80 sort_field" sort-field="nevigate_pid">[%pack:public_pack-espcms_lable_pid_name%]</th>
			<th class="text-center">[%pack:nevigate_pack-espcms_nevigate_name%]</th>
			<th class="text-center">[%pack:nevigate_pack-espcms_nevigate_modul%]</th>
			<th class="text-center">[%pack:nevigate_pack-espcms_nevigate_linkid%]</th>
			<th class="text-center">[%pack:nevigate_pack-espcms_nevigate_linktype%]</th>
			<th class="text-center">[%pack:nevigate_pack-espcms_nevigate_target%]</th>
			<th class="text-center">[%pack:nevigate_pack-espcms_nevigate_ismenu%]</th>
			<th class="text-center">[%pack:nevigate_pack-espcms_nevigate_isaccessory%]</th>
			<th class="text-center">[%pack:nevigate_pack-espcms_nevigate_iswap%]</th>
			<th class="text-center table_width_280">[%pack:public_pack-espcms_lable_control_name%]</th>
		</tr>
	</thead>
	<tbody id="sortable">
		[%forlist from=$array key=i%]
		<tr data-tt-id="[%$array[i].pathid%]" data-tt-parent-id="[%$array[i].parentpath%]" data-id="[%$array[i].nevigate_id%]" data-pid="[%$array[i].nevigate_pid%]" class="selecticon">
			<td class="text-center">
				<input type="checkbox" name="select_id" class="select_id" value="[%$array[i].nevigate_id%]"/>
				<input type="hidden" name="id_array[]" class="id_array" value="[%$array[i].nevigate_id%]">
			</td>
			<td class="text-center">[%$array[i].nevigate_id%]</td>
			<td class="text-center">[%$array[i].nevigate_pid%]</td>
			<td class="text-left">[%$array[i].nevigate_name%]</td>
			<td class="text-center">
				[%if $array[i].nevigate_modul=='bbs'%][%pack:nevigate_pack-espcms_nevigate_modul_bbs%][%/if%]
				[%if $array[i].nevigate_modul=='forms'%][%pack:nevigate_pack-espcms_nevigate_modul_forms%][%/if%]
				[%if $array[i].nevigate_modul=='article'%][%pack:nevigate_pack-espcms_nevigate_modul_article%][%/if%]
				[%if $array[i].nevigate_modul=='type'%][%pack:nevigate_pack-espcms_nevigate_modul_type%][%/if%]
				[%if $array[i].nevigate_modul=='sub'%][%pack:nevigate_pack-espcms_nevigate_modul_sub%][%/if%]
				[%if $array[i].nevigate_modul=='member'%][%pack:nevigate_pack-espcms_nevigate_modul_member%][%/if%]
				[%if $array[i].nevigate_modul=='order'%][%pack:nevigate_pack-espcms_nevigate_modul_order%][%/if%]
				[%if $array[i].nevigate_modul=='enquiry'%][%pack:nevigate_pack-espcms_nevigate_modul_inquiry%][%/if%]
				[%if $array[i].nevigate_modul=='link'%][%pack:nevigate_pack-espcms_nevigate_modul_link%][%/if%]
			</td>
			<td class="text-center" title="[%$array[i].link_title%]">[%if $array[i].nevigate_linkid && $array[i].link_title%][%$array[i].link_title|espcms_cutstr(10,'...')%][%else%]-[%/if%]</td>
			<td class="text-center">
				[%if $array[i].nevigate_linktype==1%]<span class="text-green">[%pack:nevigate_pack-espcms_nevigate_linktype_1%]</span>[%/if%]
				[%if $array[i].nevigate_linktype==2%]<span class="text-orange">[%pack:nevigate_pack-espcms_nevigate_linktype_2%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].nevigate_target==1%]
				<span class="text-orange">[%pack:nevigate_pack-espcms_nevigate_target_1%]</span>
				[%else%]
				<span class="text-green">[%pack:nevigate_pack-espcms_nevigate_target_0%]</span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].nevigate_ismenu==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].nevigate_isaccessory==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].nevigate_iswap==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center kill_copy">
				<button type="button" class="btn btn-addblue btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:nevigate_pack-espcms_nevigate_button_add2%]" tab_close="false" tab_url="[%$array[i].add%]">[%pack:nevigate_pack-espcms_nevigate_button_add2%]</button>
				<button type="button" class="btn btn-green btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:nevigate_pack-espcms_nevigate_button_add_link2%]" tab_close="false" tab_url="[%$array[i].addlink%]">[%pack:nevigate_pack-espcms_nevigate_button_add_link2%]</button>
				[%if $array[i].nevigate_modul=='type'%]
				<button type="button" class="btn btn-babyblue btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:nevigate_pack-espcms_nevigate_button_import%]" tab_close="false" tab_url="[%$array[i].import%]">[%pack:nevigate_pack-espcms_nevigate_button_import%]</button>
				[%/if%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:nevigate_pack-espcms_nevigate_button_edit%]" tab_close="false" tab_url="[%$array[i].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
			</td>
		</tr>
		[%forlist from=$array[i].childArray key=ii%]
		<tr data-tt-id="[%$array[i].childArray[ii].pathid%]" data-tt-parent-id="[%$array[i].childArray[ii].parentpath%]" data-id="[%$array[i].childArray[ii].nevigate_id%]" data-pid="[%$array[i].childArray[ii].nevigate_pid%]" class="selecticon">
			<td class="text-center">
				<input type="checkbox" name="select_id" class="select_id" value="[%$array[i].childArray[ii].nevigate_id%]"/>
				<input type="hidden" name="id_array[]" class="id_array" value="[%$array[i].childArray[ii].nevigate_id%]">
			</td>
			<td class="text-center">[%$array[i].childArray[ii].nevigate_id%]</td>
			<td class="text-center">[%$array[i].childArray[ii].nevigate_pid%]</td>
			<td class="text-left">[%$array[i].childArray[ii].nevigate_name%]</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].childArray[ii].nevigate_modul=='bbs'%][%pack:nevigate_pack-espcms_nevigate_modul_bbs%][%/if%]
				[%if $array[i].childArray[ii].nevigate_modul=='forms'%][%pack:nevigate_pack-espcms_nevigate_modul_forms%][%/if%]
				[%if $array[i].childArray[ii].nevigate_modul=='article'%][%pack:nevigate_pack-espcms_nevigate_modul_article%][%/if%]
				[%if $array[i].childArray[ii].nevigate_modul=='type'%][%pack:nevigate_pack-espcms_nevigate_modul_type%][%/if%]
				[%if $array[i].childArray[ii].nevigate_modul=='sub'%][%pack:nevigate_pack-espcms_nevigate_modul_sub%][%/if%]
				[%if $array[i].childArray[ii].nevigate_modul=='member'%][%pack:nevigate_pack-espcms_nevigate_modul_member%][%/if%]
				[%if $array[i].childArray[ii].nevigate_modul=='order'%][%pack:nevigate_pack-espcms_nevigate_modul_order%][%/if%]
				[%if $array[i].childArray[ii].nevigate_modul=='enquiry'%][%pack:nevigate_pack-espcms_nevigate_modul_inquiry%][%/if%]
				[%if $array[i].childArray[ii].nevigate_modul=='link'%][%pack:nevigate_pack-espcms_nevigate_modul_link%][%/if%]
			</td>
			<td class="text-center" title="[%$array[i].childArray[ii].link_title%]">[%if $array[i].childArray[ii].nevigate_linkid && $array[i].childArray[ii].link_title%][%$array[i].childArray[ii].link_title|espcms_cutstr(10,'...')%][%else%]-[%/if%]</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].nevigate_linktype==1%]<span class="text-green">[%pack:nevigate_pack-espcms_nevigate_linktype_1%]</span>[%/if%]
				[%if $array[i].childArray[ii].nevigate_linktype==2%]<span class="text-orange">[%pack:nevigate_pack-espcms_nevigate_linktype_2%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].nevigate_target==1%]
				<span class="text-orange">[%pack:nevigate_pack-espcms_nevigate_target_1%]</span>
				[%else%]
				<span class="text-green">[%pack:nevigate_pack-espcms_nevigate_target_0%]</span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].nevigate_ismenu==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].nevigate_isaccessory==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].nevigate_iswap==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center kill_copy">
				<button type="button" class="btn btn-addblue btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:nevigate_pack-espcms_nevigate_button_add2%]" tab_close="false" tab_url="[%$array[i].childArray[ii].add%]">[%pack:nevigate_pack-espcms_nevigate_button_add2%]</button>
				<button type="button" class="btn btn-green btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:nevigate_pack-espcms_nevigate_button_add_link2%]" tab_close="false" tab_url="[%$array[i].childArray[ii].addlink%]">[%pack:nevigate_pack-espcms_nevigate_button_add_link2%]</button>
				[%if $array[i].childArray[ii].nevigate_modul=='type'%]
				<button type="button" class="btn btn-babyblue btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:nevigate_pack-espcms_nevigate_button_import%]" tab_close="false" tab_url="[%$array[i].childArray[ii].import%]">[%pack:nevigate_pack-espcms_nevigate_button_import%]</button>
				[%/if%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:nevigate_pack-espcms_nevigate_button_edit%]" tab_close="false" tab_url="[%$array[i].childArray[ii].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
			</td>
		</tr>
		[%forlist from=$array[i].childArray[ii].childArray key=iii%]
		<tr data-tt-id="[%$array[i].childArray[ii].childArray[iii].pathid%]" data-tt-parent-id="[%$array[i].childArray[ii].childArray[iii].parentpath%]" data-id="[%$array[i].childArray[ii].childArray[iii].nevigate_id%]" data-pid="[%$array[i].childArray[ii].childArray[iii].nevigate_pid%]" class="selecticon">
			<td class="text-center">
				<input type="checkbox" name="select_id" class="select_id" value="[%$array[i].childArray[ii].childArray[iii].nevigate_id%]"/>
				<input type="hidden" name="id_array[]" class="id_array" value="[%$array[i].childArray[ii].childArray[iii].nevigate_id%]">
			</td>
			<td class="text-center">[%$array[i].childArray[ii].childArray[iii].nevigate_id%]</td>
			<td class="text-center">[%$array[i].childArray[ii].childArray[iii].nevigate_pid%]</td>
			<td class="text-left">[%$array[i].childArray[ii].childArray[iii].nevigate_name%]</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].childArray[iii].childArray[ii].nevigate_modul=='bbs'%][%pack:nevigate_pack-espcms_nevigate_modul_bbs%][%/if%]
				[%if $array[i].childArray[ii].childArray[iii].nevigate_modul=='forms'%][%pack:nevigate_pack-espcms_nevigate_modul_forms%][%/if%]
				[%if $array[i].childArray[ii].childArray[iii].nevigate_modul=='article'%][%pack:nevigate_pack-espcms_nevigate_modul_article%][%/if%]
				[%if $array[i].childArray[ii].childArray[iii].nevigate_modul=='type'%][%pack:nevigate_pack-espcms_nevigate_modul_type%][%/if%]
				[%if $array[i].childArray[ii].childArray[iii].nevigate_modul=='sub'%][%pack:nevigate_pack-espcms_nevigate_modul_sub%][%/if%]
				[%if $array[i].childArray[ii].childArray[iii].nevigate_modul=='member'%][%pack:nevigate_pack-espcms_nevigate_modul_member%][%/if%]
				[%if $array[i].childArray[ii].nevigate_modul=='order'%][%pack:nevigate_pack-espcms_nevigate_modul_order%][%/if%]
				[%if $array[i].childArray[ii].childArray[iii].nevigate_modul=='enquiry'%][%pack:nevigate_pack-espcms_nevigate_modul_inquiry%][%/if%]
				[%if $array[i].childArray[ii].childArray[iii].nevigate_modul=='link'%][%pack:nevigate_pack-espcms_nevigate_modul_link%][%/if%]
			</td>
			<td class="text-center">[%if $array[i].childArray[ii].childArray[iii].nevigate_linkid%][%$array[i].childArray[ii].childArray[iii].nevigate_linkid%][%else%]-[%/if%]</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].childArray[iii].nevigate_linktype==1%]<span class="text-green">[%pack:nevigate_pack-espcms_nevigate_linktype_1%]</span>[%/if%]
				[%if $array[i].childArray[ii].childArray[iii].nevigate_linktype==2%]<span class="text-orange">[%pack:nevigate_pack-espcms_nevigate_linktype_2%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].childArray[iii].nevigate_target==1%]
				<span class="text-orange">[%pack:nevigate_pack-espcms_nevigate_target_1%]</span>
				[%else%]
				<span class="text-green">[%pack:nevigate_pack-espcms_nevigate_target_0%]</span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].childArray[iii].nevigate_ismenu==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].childArray[iii].nevigate_isaccessory==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].childArray[ii].childArray[iii].nevigate_iswap==1%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center kill_copy">
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:nevigate_pack-espcms_nevigate_button_edit%]" tab_close="false" tab_url="[%$array[i].childArray[ii].childArray[iii].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
			</td>
		</tr>
		[%/forlist%]
		[%/forlist%]
		[%/forlist%]
	</tbody>
</table>
[%else%]
<table class="table table-hover" id="tablelist">
	<tbody>
		<tr class="selecticon">
			<td class="text-center bort0" colspan="20">[%pack:public_pack-espcms_no_infomessage%]</td>
		</tr>
	</tbody>
</table>
[%/if%]